/*
 * Jogger.hpp
 *
 *  Created on: Mar 4, 2012
 *      Author: trwulff
 */

/*
 * Description:
 */
#ifndef JOGGER_HPP
#define JOGGER_HPP
#include "WPILib.h"

#define DEFAULTSTEPSPEED 0.25

class Jogger
{
public:
	/*
	 * Default constructor
	 */
	Jogger(double jogtimeon);
	Jogger(double jogtimeon,double jogtimeoff);

	/*
	 * Default destructor
	 */
	~Jogger();
	void SetJogSpeed(float speed);
	float GetCurrentSpeed(float speed);
	void Restart(float speed);

protected:
private:
	Timer JogTimer;
	double JogTimeOn;
	double JogTimeOff;
	bool IsEnd;
	float JogSpeed;
	float JogSpeed0;

};
#endif

